<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>EHS中国信息管理系统</title>
    <link href="__TMPL__style/art_skins/default.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="__ROOT__/Public/Js/jquery-1.5.0.min.js"></script>
	<script type="text/javascript" src="__TMPL__/js/_law.js"></script>
    <script type="text/javascript" src="__TMPL__/js/jquery.artDialog.js"></script>
    <script type="text/javascript" src="__TMPL__/js/artDialog.iframeTools.js"></script>
    <script src="__TMPL__/js/artDialog.js?skin=default"></script>
    <script type="text/javascript" src="__ROOT__/Public/Js/core.js"></script>
	<script type="text/javascript" src="__ROOT__/Public/Js/WdatePicker.js"></script>
	<style>
	  table{border-collapse:collapse;border:none;line-height:16px;border:1px solid #ccc}
	  body{font-size:12px;}
	  tbody a{color:#0066FF}
	  tbody a:hover{text-decoration:underline}
	  table td{border-color:#66CCFF}
	  a{padding:3px 0px;text-decoration:none}
	  select{width:130px;}
	  a.c0,span#c0{color:#666}
      a.c1,span#c1{color:red}
      a.c2,span#c2{color:blue}
	  optgroup{color:#666;}
	  optgroup option{color:#000};
	</style>
  </head>
  <body>
    <div style="width:98%; margin:0 auto; text-align:center; padding:0 5px;">
      <div style="padding:0px;text-align:left;">
        <div style="width:100%; margin:0 auto; text-align:left;border:1px solid #000;border-style:none none solid none;padding:3px;"><a href="__URL__/index">首页</a>>>法律列表 </div>
        <div style="width:100%; float:left; ">
          类型选择：<select id="selTypeOne" name="type_id" onchange="changeSelType(this)" style="width:80px">
            <option value="">全部</option>
            <option value="hy_id">行业</option>
            <option value="zy_id">专业</option>
            <option value="dq_id">地区</option>
			<option value="app">应用</option>
            <option value="lawtype_id">法规</option>
          </select>
          <select id="selTypeTwo" name="type_id_value" style="width:130px">
            <option value="">全部</option>
          </select>
          标题：<input name="ltitle" type="text" id="ltitle" style="" value="" size="20"/>
		  状态：<select name="status" id="status" onchange="doSearch();">
		    <option value="">全部</option>
		    <option value="1">未审</option>
		    <option value="2">一审通过</option>
		    <option value="3">二审通过</option>
		  </select>
		  范围：<select name="isNew" id="isNew" onchange="doSearch();">
		    <!--<option value="">全部</option>-->
		    <option value="0" >旧数据(4w+)</option>
		    <option value="1" selected="selected">新数据(4k+)</option>
		  </select>
          <input type="button" onclick="search()" value="搜索"/>
          </span>
          <div align="left">
            <a href="javascript:void(0)" onclick="clickLnkSelect(this,1)">全选</a>|
            <a href="javascript:void(0)" onclick="clickLnkSelect(this,2)">不选</a>|
            <a href="javascript:void(0)" onclick="clickLnkSelect(this,3)">反选</a>|
            <select id="selFunction" style="width:200px"><option value="">全部</option></select>
            <input name="button" type="button" onclick="changeTypeRecords()" value="录入所选" disabled="disabled"/>
			<input name="button" type="button" onclick="shenhe()" value="审核所选"/>
			<input type="button" value="删除所选" onclick="deleteRecords()" />
          </div>
		  <div style="width:100%;padding:0;margin:3px auto;text-align:left">		  标题颜色说明：<span id="c0">【默认状态(未审核)】</span><span id="c1">【一审通过】</span><span id="c2">【二审通过】</span>
          <span style="text-align:right;">注：点击发布单位可以直接进行编辑；编辑单条记录可以点击对应行的'操作'提交；编辑多条记录点击表格下方的按钮进行提交；提交过程需要较长时间</span>
		  </div>
          <div id="divLoading" style="margin:0 auto;padding:5px 0;color:red;text-align:center;"><img src="__ROOT__/Public/images/loading.gif" /><br />处理中，请稍候；如太长时间无响应请刷新本页面</div>
          <div class="divPage"></div>
          <div id="list"></div>
          
        </div> 
      </div>
      {/*<layout name="Public:footer" cache="0" /> */}
    </div>
    <script>
      var url = "__URL__";
      var lids = [], dids = [];//lids-选择的记录id数组，用来删除/修改；dids-默认每页刷新时候记录当前页的di数组
      var _page = 0
      search(_page);
	  function doSearch(){
	  	search(_page);
	  };
	  
	  function setUser(id){
         $.dialog.data('id',id);
         //$.dialog.dialog.data('homeDemoPath', './_doc/');
         $.dialog.open('__URL__/getGovAjax', {width:730,height:220,title:'选择颁布部门-单击确定'}, false);
	  }
      /*
      function search(){
        $('#formLawList').append('<div><img src="__ROOT__/Public/images/loading.gif" /></div>');
        $("#formLawList").submit();
      }

      function changeSelType(self){
        if ($(self).val() == "") {
          $("#selTypeTwo").html('<option value="">全部</option>');
          return ;
        }
        var data = {type:$(self).val()};
        ajax.send(url+'/ajaxChangeSelType',data,function(obj){
          var list = obj.data.list;
          var type = obj.data.type_id;
          $("#selTypeTwo").html(_getHTMLSelTypeTwo(list,type));
        });
      }

      function _getHTMLSelTypeTwo(list,type){
        var str = "";
        if (type == "lawtype_id") {
          for (var i in list) {
            var l = list[i];
            str += '<option value="'+l.id+'">'+l.title+'</option>';
          }
        }else {
          for (var i in list) {
            var l = list[i];
            var lids = [l.id];
            var option = '';
            for (var j in l.downLine) {
              var d = l.downLine[j];
              option += '<option value="'+d.id+'">'+d.title+'</option>';
              lids.push(d.id);
            }
            str += '<option value="'+lids.join(',')+'" style="color:red">'+l.title+'</option>';
            str += option;
          }
        }
        return str;
      }
       */
    </script>

  </body>
</html>
